//
//  MBTianXieCell.m
//  发布求租
//
//  Created by MB__Lee on 2018/6/9.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "MBTianXieCell.h"

@interface MBTianXieCell()

@property (weak, nonatomic) IBOutlet UILabel *stateLabel;


@end

@implementation MBTianXieCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setCMModel:(MBCommonCellModel *)CMModel{
    [super setCMModel:CMModel];
    
    if (CMModel.xuanze.length) {
        self.stateLabel.text = CMModel.xuanze;
        self.stateLabel.textColor = MB_mainColor;
        
    }else{
        self.stateLabel.text = CMModel.PHTest;
        self.stateLabel.textColor = MBLitterLineColor;
    }

    
}

-(void)changeStateASSelected{
    self.stateLabel.text = @"已选择";
    self.stateLabel.textColor = MB_mainColor;
    
    
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    NSLog(@"----%zd",selected);
    // Configure the view for the selected state
}

@end
